﻿using DiffuseEnjoyIdle.Entity.Entitys;
using DiffuseEnjoyIdle.EntityFrameworkCore;
using DiffuseEnjoyIdle.IRepository;
using DiffuseEnjoyIdle.Model;
using Microsoft.EntityFrameworkCore;

namespace DiffuseEnjoyIdle.Repository
{
    public class UserRepository : IUserRepository
    {
        private readonly DBContext _context;

        public UserRepository(DBContext context)
        {
            _context = context;
        }

        public async Task test()
        {
            var model = new UserModel()
            {
                NameEndWith = "s3"
            };
            var list = await _context.Users.Where(model).ToListAsync();
        }
    }
}